home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / misc / math / calc.lha / Calc.doc < prev   
Text File  |  1996-03-08  |  1KB  |  54 lines

  1.  
  2.  
  3.                 CALC 1.0
  4.                 ========
  5.  
  6.         Written and Copyright ©1992 by Oliver Grimm
  7.  
  8.  
  9.  
  10.  Calc is a very simple no frills shell calculator for integer arithmetics.
  11.  I use it mainly for quick conversion of decimal, hexadecimal and binary
  12.  numbers since the result is given in all these three number formats.
  13.  
  14.  The usage is very simple:
  15.  
  16.  
  17.             Calc Expression
  18.  
  19.  
  20.  The expression is evaluated by Calc, and the result is printed to the
  21.  shell in the three mentioned number formats.
  22.  
  23.  The expression can consist of the following operators:
  24.  
  25.     +,-    addition, substraction  
  26.     *,/    multiplication, division
  27.     ^    power
  28.     MOD    remainder
  29.     AND    binary and
  30.     OR    binary or
  31.     XOR    binary exclusive or
  32.  
  33.  Calc is evaluating the expression from left to right, ie. it doesn't
  34.  care for the different priorities of the operators. Therefore, the
  35.  command Calc 1+2*3 gives 9,not 7. Also, there are no brackets.
  36.  
  37.  And... that's all.
  38.  
  39.  
  40.             -----------------------
  41.  
  42.  
  43.  
  44.  Anyone finds a bug, or wants some improvement ? Drop me a note.
  45.  
  46.  My contact address is as follows:    Oliver Grimm
  47.                     Steinbecker Str. 69
  48.                     21244 Buchholz
  49.                        GERMANY
  50.  
  51.  And my eMail address:    grimm@physnet.uni-hamburg.de
  52.  
  53.  
  54.